package com.chuangjiangx.member.manager.client.web.score.request;

import com.chuangjiangx.domain.shared.model.PayTerminal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 兑换商品接口参数
 * Created by YangKuo on 2017/9/27.
 */
@Getter
@Setter
@ApiModel(value = "兑换商品接口参数")
public class ConvertGiftRequest {

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id")
    @NotNull(message = "{memberId.null}")
    private Long memberId;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    @NotNull(message = "{scoreGiftId.null}")
    private Long scoreGiftId;

    /**
     * @see com.chuangjiangx.domain.shared.model.PayTerminal
     * 默认PC收银台
     */
    @ApiModelProperty(value = "终端: 默认PC收银台")
    private Integer terminal = PayTerminal.PC.code;

    private String terminalNum;

}
